import request from "../network/request";

export const Api = {
    twPromoterBindPromoter: 'api/tw/twPromoter/bindPromoter',
    twPromoterMyDetail: 'api/tw/twPromoter/myDetail',
    twPromoterRegister: 'api/tw/twPromoter/register',


}





export const twPromoterRegister=(data) =>{
    return request({
        url: Api.twPromoterRegister,
        method: 'post',
        data: data,
        headers: {contentType: 'application/json;charset=UTF-8',loading:true}
    })
}




export const twPromoterBindPromoter=(data) =>{
    return request({
        url: Api.twPromoterBindPromoter,
        method: 'post',
        data: data,
        headers: {contentType: 'application/json;charset=UTF-8',loading:true}
    })
}



export const twPromoterMyDetail=( ) =>{
    return request({
        url: Api.twPromoterMyDetail,
        method: 'get',
        headers: {contentType:  'application/x-www-form-urlencoded',loading:true}
    })
}
